@extends('back_end.layouts.default_info')

{{-- Web site Title --}}
@section('title')
修改密码
@stop
@section('content_header')
修改密码
@stop
{{-- breadcrumb --}}
@section('breadcrumb')
<li><a href="#"><i class="fa fa-dashboard"></i> {{{ Lang::get('general.back_end.home') }}}</a></li>
<li class="active">修改密码</li>
@stop

{{-- Content --}}
@section('content')
<div class="box box-primary">
    {{-- Create Form --}}
    @if(isset($entry))
    {{ Form::open(array('action' => array('BackStaffController@doModifyPassword',$entry->id))) }}
    @endif
    <div class="box-body">
        <!-- Tabs -->
        <ul class="nav nav-tabs">
            <li class="active"><a href="#tab-general" data-toggle="tab">基本信息</a></li>
        </ul>
        <!-- ./ tabs -->

        <!-- Tabs Content -->
        <div class="tab-content">
            <!-- General tab -->
            <div class="tab-pane active" id="tab-general">
                <br/>
                {{ $tab_index = 1 ? '' : '' }}
                {{ $tab_index++ }}
                {{ Form::hidden('email', $entry->user->username) }}

                {{ Form::passwordGroup('password',  '密码', $errors, $tab_index++, true) }}

                {{ Form::passwordGroup('new_password',  '新密码', $errors, $tab_index++, true) }}

                {{ Form::passwordGroup('new_password_confirmation','新密码确认', $errors, $tab_index++, true) }}

            </div>
            <!-- ./ general tab -->

        </div>
        <!-- ./ tabs content -->

        {{ Form::submitButtonGroup('BackDashboardController@getIndex', true , $tab_index) }}

        <!-- ./ form actions -->
    </div>
    {{ Form::close() }}
</div>
@stop


{{-- Scripts --}}
@section('scripts')
<script type="text/javascript">


</script>
@stop